#include "database.h"
#include <QDebug>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlRecord>
//#include<QSqlResult>

Database::Database() {}

void Database::initSqliteDatabaseDriver()
{
    QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); //添加sqlite3驱动
    db.setDatabaseName("ass.db");

    bool ok = db.open();
    if (!ok) {
        qDebug() << "open sqlite database: ass.db failed";
    }
}
